﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Service;
using PersonalHealth.Data.Model;

namespace PersonalHealth.Data.IService
{
    public interface IMessageService : IService<Message>
    {
        int GetNotReadMessageCount(int userid);

        IList<Message> GetUserMessages(int userid, int pageIndex, int pageCount, out int msgCount, out int notReadCount);

        IList<Message> GetUserMessages(int userid, MessageType type, int pageIndex, int pageCount, out int msgCount, out int notReadCount);

        void SetStateToHasRead(int id);
    }
}
